home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCM_101_Main < prev    next >
Encoding:
Text File  |  1992-04-08  |  927 b   |  50 lines

  1. // %filename% -- main program 
  2. // Created %date% %time% by AppMaker 
  3.  
  4. #ifndef __UMacApp__
  5.     #include <UMacApp.h>
  6. #endif
  7. #ifndef __UGridView__
  8.     #include <UGridView.h>
  9. #endif
  10. #ifndef __UTEView__
  11.     #include <UTEView.h>
  12. #endif
  13. #ifndef __UDialog__
  14.     #include <UDialog.h>
  15. #endif
  16. #ifndef __UPrinting__
  17.     #include <UPrinting.h> 
  18. #endif
  19. #ifndef __UAMLibraryM__
  20.     #include "UAMLibraryM.h"
  21. #endif
  22. #ifndef __U%appname%__
  23.     #include <U%appname%.h>
  24. #endif
  25.  
  26. T%Appname%App%    %*g%Appname%App;
  27.  
  28. #pragma segment Main
  29. /*----------*/
  30. void main ()
  31. {
  32.     InitToolBox ();
  33.     if (ValidateConfiguration (&gConfiguration)) {
  34.         InitUMacApp (10);    // number of calls to MoreMasters
  35.         InitUGridView ();
  36.         InitUTEView ();
  37.         InitUDialog ();
  38.         InitUPrinting ();
  39.         
  40.         g%Appname%App = new T%Appname%App;
  41.         FailNIL (g%Appname%App);
  42.         g%Appname%App->I%Appname%App ();
  43.         g%Appname%App->Run ();
  44.     } else {
  45.         StdAlert (phUnsupportedConfiguration);
  46.     }
  47. } /* main */
  48.  
  49. /* %appname% */
  50.